const TAB_CHANGE_SUCCESS = 'TAB_CHANGE_SUCCESS'

const initialState = {
    selectedIndex: 0
}
const tab = (state = initialState, action) => {
    switch (action.type) {
        case TAB_CHANGE_SUCCESS:
            return {selectedTab: action.payload }
        default:
            return state
    }
}
export default tab
